//
//  NetworkAPI.m
//  KD
//
//  Created by Hubery on 16/1/25.
//  Copyright © 2016年 ifly. All rights reserved.
//

#import "NetworkAPI.h"
#import "HXHomeRecMessageCountModel.h"
#import "NSDictionary+mutableDeepCopy.h"

 @implementation NetworkAPI

+(void)loadCreateWithDic:(id)dic withName:(NSString *)name{
    NSData * data = [NSJSONSerialization dataWithJSONObject:dic options:NSJSONWritingPrettyPrinted error:nil];
    NSString * string = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
    NSLog(@"%@的json数据结构=============================%@",name,string);
}

+(void)POST:(NSString *)url
 parameters:(NSDictionary *)parameters
    success:(void(^)(NSDictionary * responseObject))success
    failure:(void(^)(NSError *error))failure{
    NSString * networkUrl = [NSString stringWithFormat:@"%@/%@",API_HOST,url];
    [PPNetworkHelper POST:networkUrl
               parameters:parameters
                  success:^(id responseObject) {
                      success((NSDictionary *)responseObject);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}



//取消当前所有请求
+(void)cancelALlTasks{
}

//登陆
+(void)login:(NSString *)userName
withPassword:(NSString *)password
     success:(void (^)(HXLoginModel *result))success
     failure:(void (^)(NSError* err))failure{
    
    NSMutableDictionary *parameters = [NSMutableDictionary dictionary];
    parameters[@"UserPhone"] = userName;
    parameters[@"UserPassWord"] = password;
    
    [PPNetworkHelper POST:PATH(@"%@/Login.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      [NetworkAPI loadCreateWithDic:responseObject withName:@"登录"];
                      HXLoginModel *info =
                      [[HXLoginModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//登陆失败重试借口
+(void)loginAgain:(NSString *)userName
     withPassword:(NSString *)password
           number:(NSInteger)number
          success:(void (^)(HXLoginModel *result))success
          failure:(void (^)(NSError* err))failure{
    if (number <= 0) {
        if (failure) {
            failure(nil);
        }
    } else {
        [NetworkAPI login:userName withPassword:password success:^(HXLoginModel *result) {
            success(result);
        } failure:^(NSError *err) {
            [self loginAgain:userName withPassword:password number:number -1  success:success failure:failure];
        }];
    }
}

//注册
+(void)registerWithName:(NSString *)users_Organization
     users_CellPhoneNum:(NSString *)users_CellPhoneNum
         users_PassWord:(NSString *)users_PassWord
         users_CorpName:(NSString *)users_CorpName
             users_Kind:(NSString *)users_Kind
             Users_Type:(NSString *)Users_Type
                success:(void (^)(HXRegisterModel *result))success
                failure:(void (^)(NSError* err))failure{
    
    NSDictionary *parameters =@{@"Users_Organization":users_Organization,
                                @"Users_CellPhoneNum":users_CellPhoneNum,
                                @"Users_PassWord":users_PassWord,
                                //@"Users_CorpName":users_CorpName,
                                @"Users_Kind":users_Kind,
                                @"Users_Type":Users_Type
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/Register.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXRegisterModel *info =
                      [[HXRegisterModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//首页企业收件箱
+(void)notifyCorpGetListWithTitle:(NSString *)title
                    userId:(NSString *)userId
                  userKind:(NSString *)userKind
                   pageNum:(NSString *)pageNum
                   success:(void (^)(HXInformListModel *result))success
                   failure:(void (^)(NSError* err))failure{
    
    NSDictionary *parameters =@{
                                @"Query":title,
                                @"UserID":userId,
                                @"UserKind":userKind,
                                @"OnlyNoRead":@"-1",
                                @"PageSize":@"10",
                                @"PageNum":pageNum,
                                @"BoxType":@"get"
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/message/RecMessageList.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXInformListModel *info =
                      [[HXInformListModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//首页主管发件箱
+(void)notifyManageSendListWithTitle:(NSString *)title
                    userId:(NSString *)userId
                  userKind:(NSString *)userKind
                   pageNum:(NSString *)pageNum
                   success:(void (^)(HXInformListModel *result))success
                   failure:(void (^)(NSError* err))failure{
    
    NSDictionary *parameters =@{
                                @"Query":title,
                                @"UserID":userId,
                                @"UserKind":userKind,
                                @"OnlyNoRead":@"-1",
                                @"PageSize":@"10",
                                @"PageNum":pageNum,
                                @"BoxType":@"send"
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/message/RecMessageList.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXInformListModel *info =
                      [[HXInformListModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//首页主管shou件箱
+(void)notifyManageGetListWithTitle:(NSString *)title
                    userId:(NSString *)userId
                  userKind:(NSString *)userKind
                   pageNum:(NSString *)pageNum
                   success:(void (^)(HXInformListModel *result))success
                   failure:(void (^)(NSError* err))failure{
    
    NSDictionary *parameters =@{
                                @"Query":title,
                                @"UserID":userId,
                                @"UserKind":userKind,
                                @"OnlyNoRead":@"-1",
                                @"PageSize":@"10",
                                @"PageNum":pageNum,
                                @"BoxType":@"get"
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/message/RecMessageList.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXInformListModel *info =
                      [[HXInformListModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}


//删除消息(列表)
+(void)deleteNotifyWithMessageID:(NSString *)messageID
                        TMUserID:(NSString *)TMUserID
                          UserID:(NSString *)userID
                        UserKind:(NSString *)userKind
                         success:(void (^)(HXBaseModel *result))success
                         failure:(void (^)(NSError* err))failure{
    
    NSDictionary *parameters =@{
                                @"MessageID":messageID,
                                @"TMUserID":TMUserID,
                                @"UserID":userID,
                                @"UserKind":userKind
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/message/DelMessage.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//主管对企业发通知
+(void)sendNotifyWithDict:(NSMutableDictionary*)dict
                  success:(void (^)(HXBaseModel *result))success
                  failure:(void (^)(NSError* err))failure{
    
    [dict setObject:[[NSArray alloc]init] forKey:@"questList"];
    
    [PPNetworkHelper POST:PATH(@"%@/message/SendMessage.ashx")
               parameters:dict
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//主管对主管发通知 @"message/SendMasterMessage.ashx"
+(void)sendManageNotifyWithDict:(NSMutableDictionary*)dict
                  success:(void (^)(HXBaseModel *result))success
                  failure:(void (^)(NSError* err))failure{
    [dict setObject:@"3" forKey:@"Mess_Type"];
    [dict setObject:[[NSArray alloc]init] forKey:@"questList"];
    
    [PPNetworkHelper POST:PATH(@"%@/message/SendMasterMessage.ashx")
               parameters:dict
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//消息详情
+(void)notifyDetailsWithMessageId:(NSString *)messageId
                         tMUserID:(NSString *)tMUserID
                         userKind:(NSString *)userKind
                          success:(void (^)(HXNotifyDetailsModel *result))success
                          failure:(void (^)(NSError* err))failure{
    
    NSDictionary *parameters =@{
                                @"MessageID":messageId,
                                @"TMUserID":tMUserID,
                                @"UserKind":userKind,
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/message/MessagePicQueInfo.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXNotifyDetailsModel *info =
                      [[HXNotifyDetailsModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//回答问题
+(void)revertQuestionWithID:(NSString *)answer_QueID
          answer_MessUserID:(NSString *)answer_MessUserID
             answer_Content:(NSString *)answer_Content
                    success:(void (^)(HXBaseModel *result))success
                    failure:(void (^)(NSError* err))failure{
    
    NSDictionary *parameters =@{
                                @"Answer_QueID":answer_QueID,
                                @"Answer_MessUserID":answer_MessUserID,
                                @"Answer_Content":answer_Content,
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/message/DoAnswerQue.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//获取主管部门
+(void)getManageDepartmentSuccess:(void (^)(HXManageDepartmentModel *result))success
                  failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"type":@"dept"
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/message/GetDeptJobKind.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXManageDepartmentModel *info =
                      [[HXManageDepartmentModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}
//获取主管小组
+(void)getManageGroupSuccess:(void (^)(HXManageGroupModel *result))success
                  failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"type":@"group"
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/message/GetUserGroup.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXManageGroupModel *info =
                      [[HXManageGroupModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//获取地区
+(void)getAreaKindSuccess:(void (^)(HXAreaKindModel *result))success
                      failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"type":@"area"
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/message/GetAreaOrKind.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXAreaKindModel *info =
                      [[HXAreaKindModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//获取企业类型
+(void)getCorpKindSuccess:(void (^)(HXCorpKindModel *result))success
                      failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"type":@"kind"
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/message/GetAreaOrKind.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXCorpKindModel *info =
                      [[HXCorpKindModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//获取人员类别
+(void)getPersonKindWithCkind:(NSString *)ckind
                        success:(void (^)(HXPersonKindModel *result))success
                        failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"type":@"person",
                                @"ckind":ckind
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/message/GetAreaOrKind.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXPersonKindModel *info =
                      [[HXPersonKindModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//获取资质等级
+(void)getQualityKindWithCkind:(NSString *)ckind
                         success:(void (^)(HXGradeKindModel *result))success
                         failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"type":@"quality",
                                @"ckind":ckind
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/message/GetAreaOrKind.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXGradeKindModel *info =
                      [[HXGradeKindModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}
//获取企业列表
+(void)getCorpWithAeraCode:(NSString *)aeraCode
                CorpKind:(NSString *)corpKind
             CorpQuality:(NSString *)corpQuality
                 success:(void (^)(HXCorpModel *result))success
                 failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"AppID":@"109",
                                @"AeraCode":aeraCode,
                                @"CorpKind":corpKind,
                                @"CorpQuality":corpQuality,
                                @"PageSize":@"-1",
                                @"PageNum":@"0"
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/message/CorpDDList.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXCorpModel *info =
                      [[HXCorpModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];

}

//获取人员列表
+(void)getPersonWithNum:(NSString *)num
                 dict:(NSMutableDictionary *)mDict
                  success:(void (^)(HXPersonSelectedModel *result))success
                  failure:(void (^)(NSError* err))failure{
    [mDict setObject:@"0" forKey:@"PageNum"];
    [mDict setObject:@"-1" forKey:@"PageSize"];
    [mDict setObject:@"109" forKey:@"AppID"];
    
    [PPNetworkHelper POST:PATH(@"%@/message/CorpKindList.ashx")
               parameters:mDict
                  success:^(id responseObject) {
                      HXPersonSelectedModel *info =
                      [[HXPersonSelectedModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];

}

//获取主管人员列表
+(void)getManagePersonWithNum:(NSString *)num
                   dict:(NSMutableDictionary *)mDict
                success:(void (^)(HXSelectedManagePersonModel *result))success
                failure:(void (^)(NSError* err))failure{
    [mDict setObject:@"0" forKey:@"PageNum"];
    [mDict setObject:@"-1" forKey:@"PageSize"];
    [mDict setObject:@"109" forKey:@"AppID"];
    
    [PPNetworkHelper POST:PATH(@"%@/message/GetMasterList.ashx")
               parameters:mDict
                  success:^(id responseObject) {
                      HXSelectedManagePersonModel *info =
                      [[HXSelectedManagePersonModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];

}

//获取会议签到列表
+(void)getReachWithMessID:(NSString *)messID
               PageNum:(NSString *)PageNum
               success:(void (^)(HXReachHomeModel *result))success
               failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"MessageID":messID,
                                @"QueryType":@"meeting",
                                @"title":@"",
                                @"PageSize":@"10",
                                @"PageNum":PageNum
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/Message/MeetingChecked.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXReachHomeModel *info =
                      [[HXReachHomeModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}


//会议签到详情
+(void)getReachDetailsWithMessID:(NSString *)messID
                  success:(void (^)(HXReachModel *result))success
                  failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"MessageID":messID,
                                @"QueryType":@"check",
                                @"title":@"",
                                @"PageSize":@"10",
                                @"PageNum":@"0"
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/Message/MeetingChecked.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXReachModel *info =
                      [[HXReachModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];

}

//签到
+(void)reachWithMessID:(NSString *)messID
                UserId:(NSString *)userId
              SignType:(NSString *)SignType
               success:(void (^)(HXBaseModel *result))success
               failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"MessageID":messID,
                                @"SignType":SignType,
                                @"TMUserID":userId
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/message/CheckButton.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];

}



//查看问题回复列表
+(void)revertListWithQuestID:(NSString *)questID
                 UserId:(NSString *)userId
               UserKind:(NSString *)userKind
                PageNum:(NSString *)pageNum
                PageSize:(NSString *)pageSize
                success:(void (^)(HXRevertQuestionListModel *result))success
                failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"QuestID":questID,
                                @"UserID":userId,
                                @"UserKind":userKind,
                                @"PageSize":pageSize,
                                @"PageNum":pageNum
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/message/AnswerList.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXRevertQuestionListModel *info =
                      [[HXRevertQuestionListModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];

}

//修改密码
+(void)changePwdtWithUserId:(NSString *)userId
                     OldPwd:(NSString *)oldPwd
                NewPassWord:(NSString *)NewPassWord
                    success:(void (^)(HXBaseModel *result))success
                    failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"UserID":userId,
                                @"OldPassWord":oldPwd,
                                @"NewPassWord":NewPassWord
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/ChangePassWord.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//地图--列表
+(void)getGISWithAreaCode:(NSString *)areaCode
                  success:(void (^)(HXNearbyGISModel *result))success
                  failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"AreaCode":areaCode
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/Work/GetProjectListByAreacode.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXNearbyGISModel *info =
                      [[HXNearbyGISModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//地图--附近的工地列表
+(void)getNearbyGISWithPointX:(NSString *)PointX
                                           PointY:(NSString *)PointY
                  success:(void (^)(HXNearbyGISModel *result))success
                  failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"PointX":PointX,
                                @"PointY":PointY
                                };

    [PPNetworkHelper POST:PATH(@"%@/Work/GetProjectByPoint.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXNearbyGISModel *info =
                      [[HXNearbyGISModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//地图--获取地区码以及项目个数
+(void)getAreaCodeSuccess:(void (^)(HXAreaCodeGISModel *result))success
                      failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"areacode":@"370200",
                                @"year":@"2016"
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/Work/GetStandardCountByAreaAndYear.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXAreaCodeGISModel *info =
                      [[HXAreaCodeGISModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//地图--搜索项目
+(void)searchProWithName:(NSString *)name
                 address:(NSString *)address
                 success:(void (^)(HXNearbyGISModel *result))success
                 failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"Name":name,
                                @"Address":address
                                };
    

    [PPNetworkHelper POST:PATH(@"%@/work/GetProjectByNameAndAddress.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXNearbyGISModel *info =
                      [[HXNearbyGISModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//地图--获取地区项目
+(void)getAreaProWithCode:(NSString *)code
                 success:(void (^)(HXNearbyGISModel *result))success
                 failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"areacode":code
                                };

    [PPNetworkHelper POST:PATH(@"%@/Work/GetProjectByCityArea.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXNearbyGISModel *info =
                      [[HXNearbyGISModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//项目详情
+(void)getItemDetailsWithKeyGuid:(NSString *)keyGuid
                         success:(void (^)(HXMessageDetailsModel *result))success
                         failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"KeyGuid":keyGuid
                                };
    
    
    [PPNetworkHelper POST:PATH(@"%@/Work/GetProjectInfoByPrjGuid.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXMessageDetailsModel *info =
                      [[HXMessageDetailsModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      NSMutableArray *array = [[NSMutableArray alloc]init];
                      [array addObject:[HXLineMessageModel initWithName:@"项目编号" Msg:info.Projectinfo.PrjNum]];
                      [array addObject:[HXLineMessageModel initWithName:@"项目名称" Msg:info.Projectinfo.PrjName]];
                      [array addObject:[HXLineMessageModel initWithName:@"项目分类" Msg:info.Projectinfo.PrjType]];
                      [array addObject:[HXLineMessageModel initWithName:@"项目行政区划" Msg:info.Projectinfo.AreaCodeAbs]];
                      [array addObject:[HXLineMessageModel initWithName:@"建设单位名称" Msg:info.Projectinfo.BuildCorpName]];
                      //                                 [array addObject:[HXLineMessageModel initWithName:@"建设组织机构代码" Msg:info.Projectinfo.BuildCorpCode]];
                      [array addObject:[HXLineMessageModel initWithName:@"立项文号" Msg:info.Projectinfo.PrjApprovalNum]];
                      [array addObject:[HXLineMessageModel initWithName:@"立项级别" Msg:info.Projectinfo.PrjApprovaLevelNum]];
                      [array addObject:[HXLineMessageModel initWithName:@"建设用地规划许可证编号" Msg:info.Projectinfo.BuldPlanNum]];
                      [array addObject:[HXLineMessageModel initWithName:@"建设工程规划许可证编号" Msg:info.Projectinfo.PrjectPlanNum]];
                      [array addObject:[HXLineMessageModel initWithName:@"总投资(单位:元)" Msg:info.Projectinfo.AllInvest]];
                      [array addObject:[HXLineMessageModel initWithName:@"总面积(单位:平方米)" Msg:info.Projectinfo.AllArea]];
                      [array addObject:[HXLineMessageModel initWithName:@"工程用途" Msg:info.Projectinfo.PrjFunctionNum]];
                      [array addObject:[HXLineMessageModel initWithName:@"建设性质" Msg:info.Projectinfo.PrjPropertyNum]];
                      [array addObject:[HXLineMessageModel initWithName:@"计划开工时间" Msg:info.Projectinfo.BDate]];
                      [array addObject:[HXLineMessageModel initWithName:@"计划竣工时间" Msg:info.Projectinfo.EDate]];
                      [array addObject:[HXLineMessageModel initWithName:@"项目地址" Msg:info.Projectinfo.PrjAddress]];
                      //                                 [array addObject:[HXLineMessageModel initWithName:@"建设规模" Msg:info.Projectinfo.PrjSize]];
                      info.messageArray = [[NSArray alloc]initWithArray:array];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//工地现场管理首页列表
+(void)localeJobWithNum:(NSString *)num
                success:(void (^)(HXLocaleJobModel *result))success
                failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"UserID":[UserDefaultHandler getUserDetault:kID],
                                @"PageSize":@"10",
                                @"PageNum":num
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/Work/GetTaskList.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXLocaleJobModel *info =
                      [[HXLocaleJobModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}


//发布工地检查
+(void)createAddWithDic:(NSDictionary *)dict
                success:(void (^)(HXSendInformationModel *result))success
                failure:(void (^)(NSError * err))failure {

    [PPNetworkHelper POST:PATH(@"%@/work/SendPicInfo.ashx")
               parameters:dict
                  success:^(id responseObject) {
                      HXSendInformationModel *info =
                      [[HXSendInformationModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

#pragma mark----发布工地检查 新接口
+(void)newCreateAddWithDic:(NSDictionary *)dict
                   success:(void (^)(HXSendInformationModel *result))success
                   failure:(void (^)(NSError * err))failure {

    [PPNetworkHelper POST:PATH(@"%@/work/SendPicInfoBit.ashx")
               parameters:dict
                  success:^(id responseObject) {
                      HXSendInformationModel *info =
                      [[HXSendInformationModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//修改发布工地检查 --------//注意
+(void)newCreateAddWithArray:(NSArray *)array
                     success:(void (^)(HXSendInformationModel *))success
                     failure:(void (^)(NSError *))failure {
    
    
    [PPNetworkHelper POST:PATH(@"%@/work/SendPicInfo.ashx")
               parameters:(NSDictionary *)array
                  success:^(id responseObject) {
                      HXSendInformationModel *info =
                      [[HXSendInformationModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}



//获取工地处罚详情
+(void)getJobPunishListWithTaskId:(NSString *)TaskId
                             type:(NSString *)type
                          success:(void (^)(HXJobPunishDetailsModel *result))success
                          failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"TaskID":TaskId,
                                @"PicType":type
                                };
    

    [PPNetworkHelper POST:PATH(@"%@/work/PicInfoList.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXJobPunishDetailsModel *info =
                      [[HXJobPunishDetailsModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//通讯录
+(void)getPersonListWithType:(NSString *)type
                       Ckind:(NSString *)ckind
                     Success:(void (^)(HXPersonNumModel *result))success
                     failure:(void (^)(NSError *))failure {
    NSDictionary *parameters = @{
                                 @"type":type,
                                 @"ckind":ckind
                                 };

    [PPNetworkHelper POST:PATH(@"%@/users/PhoneBook.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXPersonNumModel *info =
                      [[HXPersonNumModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//获取处罚方式
+(void)getPunishTypeSuccess:(void (^)(HXPunishTypeModel *result))success
             failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"type":@"punish"
                                };

    [PPNetworkHelper POST:PATH(@"%@/Work/GetPunish.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXPunishTypeModel *info =
                      [[HXPunishTypeModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//获取工作日志
+(void)getJobRecordListWithUserId:(NSString *)userId
                          GroupID:(NSString *)GroupID
                           WeekID:(NSString *)WeekID
                          success:(void (^)(HXJopRecordModel *result))success
                          failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"UserID":[UserDefaultHandler getUserDetault:kID],
                                @"GroupID":GroupID,
                                @"WeekID":WeekID
                                };
    [PPNetworkHelper POST:PATH(@"%@/work/GetWorkList.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXJopRecordModel *info =
                      [[HXJopRecordModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//创建处罚
+(void)createPunishWithUserId:(NSString *)userId
                     SiteName:(NSString *)SiteName
                      SiteAdd:(NSString *)SiteAdd
              SiteWorkContent:(NSString *)SiteWorkContent
                       pointX:(NSString *)pointX
                       pointY:(NSString *)pointY
                      success:(void (^)(HXCreatePunishModel *result))success
                      failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"UserID":userId,
                                @"SiteName":SiteName,
                                @"SiteAdd":SiteAdd,
                                @"SiteWorkContent":SiteWorkContent,
                                @"pointX":pointX,
                                @"pointY":pointY
                                };
    

    [PPNetworkHelper POST:PATH(@"%@/Work/AddTask.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXCreatePunishModel *info =
                      [[HXCreatePunishModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

+(void)createPunishWithUserId:(NSString *)userId
                     SiteName:(NSString *)SiteName
                     KGUID:(NSString *)KGUID
                      SiteAdd:(NSString *)SiteAdd
                    GroupName:(NSString *)GroupName
              SiteWorkContent:(NSString *)SiteWorkContent
                       pointX:(NSString *)pointX
                       pointY:(NSString *)pointY
                   CreateDate:(NSString *)CreateDate
                   UpdateDate:(NSString *)UpdateDate
                      success:(void (^)(HXCreatePunishModel *))success
                      failure:(void (^)(NSError *))failure {
    
    NSDictionary *parameters =@{
                                @"UserID":userId,
                                @"SiteName":SiteName,
                                @"SiteAdd":SiteAdd,
                                @"GroupName":GroupName,
                                @"SiteWorkContent":SiteWorkContent,
                                @"pointX":pointX,
                                @"pointY":pointY,
                                @"keyguid":KGUID,
                                @"CreateDate":CreateDate,
                                @"UpdateDate":UpdateDate,
                                };


    [PPNetworkHelper POST:PATH(@"%@/Work/AddTask.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXCreatePunishModel *info =
                      [[HXCreatePunishModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//发送处罚
+(void)sendPunishWithDict:(NSDictionary *)dict
                  success:(void (^)(HXBaseModel *result))success
                  failure:(void (^)(NSError* err))failure{
    
    [PPNetworkHelper POST:PATH(@"%@/work/SendPicInfo.ashx")
               parameters:dict
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//获取公文列表
+(void)getFileListWithNum:(NSString *)num
                QueryText:(NSString *)QueryText
                  Success:(void (^)(HXFileModel *result))success
                  failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"PageSize":@"10",
                                @"PageNum":num,
                                @"QueryText":QueryText
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/Document/DocumentList.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXFileModel *info =
                      [[HXFileModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//获取公文详情
+(void)getFileDetailsWithDocID:(NSString *)DocID
                  Success:(void (^)(HXFileDetailsModel *result))success
                  failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"DocID":DocID
                                };

    [PPNetworkHelper POST:PATH(@"%@/Document/DocumentDetail.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXFileDetailsModel *info =
                      [[HXFileDetailsModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//获取整改列表详情
+(void)getCeaseListWithGroupID:(NSString *)GroupID
                       PageNum:(NSString *)PageNum
                       Success:(void (^)(HXCeaseModel *result))success
                       failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"UserID":[UserDefaultHandler getUserDetault:kID],
                                @"GroupID":@"-1",
                                @"PageSize":@"10",
                                @"PageNum":PageNum
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/work/GetPunishProject.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXCeaseModel *info =
                      [[HXCeaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//更新红点项目状态
+(void)changeRedProgectStateWithKeyGuid:(NSString *)KeyGuid
                                 UserID:(NSString *)UserID
                                Success:(void (^)(HXBaseModel *result))success
                                failure:(void (^)(NSError* err))failure {
    
    NSDictionary * parameters = @{
                                  @"KeyGuid":KeyGuid,
                                  @"UserID":UserID
                                  };
    
    
    [PPNetworkHelper POST:PATH(@"%@/Intervention/UpdateProState.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}


//操作整改项目
+(void)changeCeaseWithKeyGuid:(NSString *)KeyGuid
                       NewStateValue:(NSString *)NewStateValue
                       Success:(void (^)(HXBaseModel *result))success
                       failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"UserID":[UserDefaultHandler getUserDetault:kID],
                                @"KeyGuid":KeyGuid,
                                @"NewStateValue":NewStateValue
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/work/UpdateProjectState.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//添加空白处工作周报
+(void)addJobRecordWithWorkID:(NSString *)WorkID
                   CreateDate:(NSString *)CreateDate
              SiteWorkContent:(NSString *)SiteWorkContent
                      Success:(void (^)(HXBaseModel *result))success
                      failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"UserID":[UserDefaultHandler getUserDetault:kID],
                                @"WorkID":WorkID,
                                @"SiteWorkContent":SiteWorkContent,
                                @"CreateDate":CreateDate
                                };

    [PPNetworkHelper POST:PATH(@"%@/work/AddWorkInfo.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}


//修改工作内容
+(void)changeJobRecordWithTaskID:(NSString *)TaskID
                 SiteWorkContent:(NSString *)SiteWorkContent
                          WorkID:(NSString *)WorkID
                         Success:(void (^)(HXBaseModel *result))success
                      failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"UserID":@"0",
                                @"WorkID":WorkID,
                                @"SiteWorkContent":SiteWorkContent,
                                @"TaskID":TaskID,
                                @"CreateDate":@"1993-3-3"
                                };
   
    [PPNetworkHelper POST:PATH(@"%@/work/AddWorkInfo.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//获取系统时间
+(void)getServerDateSuccess:(void (^)(HXServerDateModel *result))success
                         failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"ServerDate":@"get"
                                };

    [PPNetworkHelper POST:PATH(@"%@/ServerDate/GetServerDate.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXServerDateModel *info =
                      [[HXServerDateModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}



//删除工地检查任务
+(void)deleteConstructionSiteTaskWithTaskID:(NSString *)TaskID
                                    Success:(void (^)(HXBaseModel *))success
                                    failure:(void (^)(NSError *))failure {
    NSDictionary *parameters = @{
                                 @"TaskID":TaskID,
                                 @"UserID":[UserDefaultHandler getUserDetault:kID]
                                 };

    [PPNetworkHelper POST:PATH(@"%@/Work/TaskDel.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//修改小组人员、任务内容
+(void)changePresonTaskContentWithTaskID:(NSString *)TaskID
                                SiteName:(NSString *)SiteName
                               GroupName:(NSString *)GroupName
                              SubmitDate:(NSString *)submitDate
                               Success:(void(^)(HXBaseModel *result))success
                               failure:(void(^)(NSError *err))failure {
    
    NSDictionary *parameters = @{
                                 @"TaskID":TaskID,
                                 @"SiteName":SiteName,
                                 @"GroupName":GroupName,
                                 @"SubmitDate":submitDate,
                                 };

    [PPNetworkHelper POST:PATH(@"%@/Work/ChangeAddTask.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}
//获取任务描述
+(void)getTaskDescribeWithTaskID:(NSString *)TaskID
                         Success:(void(^)(HXTaskDescribeModel *result))success
                         failure:(void(^)(NSError *err))failure {
    
    NSDictionary *parameters =@{
                                @"TaskID":TaskID
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/Work/GetTaskDetail.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXTaskDescribeModel *info =
                      [[HXTaskDescribeModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//获取修改限制照片次数
+(void)getChangePhotoTimesWithTaskID:(NSString *)TaskID
                              DoWhat:(NSString *)DoWhat
                               Count:(NSString *)Count
                             Success:(void(^)(HXChangePhotoTimesModel * result))success
                             failure:(void(^)(NSError * err))failure {
    
    NSDictionary * parameters = @{
                                  @"TaskID":TaskID,
                                  @"DoWhat":DoWhat,
                                  @"Count":Count
                                  };
    
    [PPNetworkHelper POST:PATH(@"%@/Work/GatePicCount.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXChangePhotoTimesModel *info =
                      [[HXChangePhotoTimesModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//修改大门拍照坐标
+(void)changeDoorCoordinateWithUserID:(NSString *)UserID
                              KeyGuid:(NSString *)KeyGuid
                               PointX:(NSString *)PointX
                               PointY:(NSString *)PointY
                           PrjAddress:(NSString *)PrjAddress
                              Success:(void(^)(HXBaseModel *result))success
                              failure:(void(^)(NSError *err))failure {
    
    NSDictionary * parameters = @{
                                  @"UserID":UserID,
                                  @"KeyGuid":KeyGuid,
                                  @"PointX":PointX,
                                  @"PointY":PointY,
                                  @"PrjAddress":PrjAddress
                                  };

    [PPNetworkHelper POST:PATH(@"%@/work/ChangeXY.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//删除大门与取证图片
+(void)deleteDoorPhotoWithTaskID:(NSString *)TaskID
                         PicType:(NSString *)PicType
                         Success:(void(^)(HXBaseModel *result))success
                         failure:(void(^)(NSError *err))failure {
    NSDictionary * parameters = @{
                                  @"TaskID":TaskID,
                                  @"PicType":PicType
                                  };
    
    [PPNetworkHelper POST:PATH(@"%@/Work/PicInfoDel.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//获取地区编码
+(void)getAreaCodeTestSuccess:(void(^)(HXGetAreaCodeTestModel * result))success
                      failure:(void(^)(NSError *err))failure {
    
    NSDictionary * parameters = @{
                                  @"type":@"area"
                                      };

    [PPNetworkHelper POST:PATH(@"%@/Intervention/GetAbsAreaCode.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXGetAreaCodeTestModel *info =
                      [[HXGetAreaCodeTestModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

/**17.获取地区列表绑定滚轮或下拉列表*/
+(void)getAbsAreaCodeSuccess:(void (^)(HXGetAbsAreaCodeModel *result))success failure:(void (^)(NSError* err))failure{
    
    NSDictionary * parameters = @{@"type":@"area"};
    

    [PPNetworkHelper POST:PATH(@"%@/Intervention/GetAbsAreaCode.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXGetAbsAreaCodeModel *info =
                      [[HXGetAbsAreaCodeModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}


//未完成周报提醒
+(void)getJobRecordNotFinishSuccess:(void (^)(HXBaseModel *result))success
                    failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"UserID":[UserDefaultHandler getUserDetault:kID]
                                };
    
    [PPNetworkHelper POST:PATH(@"%@/work/CheckWeek.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}


//获取邮件未读数
+(void)getHomeRecMessageCountSuccess:(void (^)(HXHomeRecMessageCountModel *result))success
                         failure:(void (^)(NSError* err))failure{
    NSString *userKindStr;
    if ([[UserDefaultHandler getUserDetault:kUsers_Kind] integerValue] == UserTypeBank) {
        userKindStr = @"0";
    }else if ([[UserDefaultHandler getUserDetault:kUsers_Kind] integerValue] == UserTypeManage){
        userKindStr = @"1";
    }else if ([[UserDefaultHandler getUserDetault:kUsers_Kind] integerValue] == UserTypeCorp){
        userKindStr = @"0";
    }else{
        userKindStr = @"0";
    }
    NSDictionary *parameters =@{
                                @"UserID":[UserDefaultHandler getUserDetault:kID],
                                @"UserKind":userKindStr,
                                @"OnlyNoRead":@"0",
                                @"BoxType":@"get"
                                };

    [PPNetworkHelper POST:PATH(@"%@/message/RecMessageCount.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXHomeRecMessageCountModel *info =
                      [[HXHomeRecMessageCountModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

//会议回执
+(void)meetingReceiptWithTMID:(NSString *)tmUserId
                    MU_IsJoin:(NSString *)MU_IsJoin
                MU_ReplaceMan:(NSString *)MU_ReplaceMan
             MU_ReplaceManTel:(NSString *)MU_ReplaceManTel
                      Success:(void (^)(HXBaseModel *result))success
                      failure:(void (^)(NSError* err))failure{
    NSDictionary *parameters =@{
                                @"ID":tmUserId,
                                @"MU_IsJoin":MU_IsJoin,
                                @"MU_ReplaceManTel":MU_ReplaceManTel,
                                @"MU_ReplaceMan":MU_ReplaceMan
                                };

    [PPNetworkHelper POST:PATH(@"%@/Message/MeetingReceipt.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

/**添加或者修改提前介入项目 1:添加 KeyGuid 为空 2:修改 KeyGuid不能为空*/
+(void)addIntProjectWithPrjName:(NSString *)PrjName//项目名称
                     PrjAddress:(NSString *)PrjAddress//项目地址
                  BuildCorpName:(NSString *)BuildCorpName//建设单位
                        Builder:(NSString *)Builder//建设单位负责人
                     BuilderTel:(NSString *)BuilderTel//电话
                         PointX:(NSString *)PointX
                         PointY:(NSString *)PointY
                       KindType:(NSString *)KindType
                       AreaCode:(NSString *)AreaCode
                        KeyGuid:(NSString *)keyGuid
                        Success:(void (^)(HXBaseModel *result))success
                        failure:(void (^)(NSError* err))failure{

    NSDictionary * parameters;
    
    if ([KindType isEqualToString:@"1"]) {
        
        parameters = @{@"PrjName":PrjName,
                         @"PrjAddress":PrjAddress,
                         @"BuildCorpName":BuildCorpName,
                         @"Builder":Builder,
                         @"BuilderTel":BuilderTel,
                         @"PointX":PointX,
                         @"PointY":PointY,
                         @"UserID":[UserDefaultHandler getUserDetault:kID],
                         @"KindType":KindType,
                         @"AreaCode":AreaCode};
        
    }else if ([KindType isEqualToString:@"2"]){
    
        parameters = @{@"PrjName":PrjName,
                       @"PrjAddress":PrjAddress,
                       @"BuildCorpName":BuildCorpName,
                       @"Builder":Builder,
                       @"BuilderTel":BuilderTel,
                       @"PointX":PointX,
                       @"PointY":PointY,
                       @"UserID":[UserDefaultHandler getUserDetault:kID],
                       @"KindType":KindType,
                       @"AreaCode":AreaCode,
                       @"KeyGuid":keyGuid};
    }
    
    [PPNetworkHelper POST:PATH(@"%@/Intervention/IntProject.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

/**取消提前介入或者删除  3:取消提前介入 4:删除*/
+(void)cancelOrDeleteIntProjectWithKeyGuid:(NSString *)keyGuid
                              withKindType:(NSString *)kindType
                                   Success:(void (^)(HXBaseModel *result))success
                                   failure:(void (^)(NSError* err))failure{

    NSDictionary * parameters = @{
                                  @"KeyGuid":keyGuid,
                                  @"UserID":[UserDefaultHandler getUserDetault:kID],
                                  @"KindType":kindType,
                                  };


    [PPNetworkHelper POST:PATH(@"%@/Intervention/IntProject.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

/**15.查询黄点提前介入项目详情*/
+(void)getYellowProgectStateWithKeyGuid:(NSString *)keyGuid
                                Success:(void (^)(HXTQJRXMModel *result))success
                                failure:(void (^)(NSError* err))failure{

    NSDictionary * parameters = @{
                                  @"KeyGuid":keyGuid
                                  };
    

    [PPNetworkHelper POST:PATH(@"%@/Intervention/GetIntProject.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXTQJRXMModel *info =
                      [[HXTQJRXMModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

/**
 公司设置
 */

/**加入小组*/
+(void)getJoinGroupsWithSuccess:(void(^)(HXGetJoinGroupModel *result))success
                        failure:(void (^)(NSError* err))failure {
    
    NSDictionary * parameters = @{
                                  @"UserID":[UserDefaultHandler getUserDetault:kID]
                                  };
    
    [PPNetworkHelper POST:PATH(@"%@/Users/GetGroups.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXGetJoinGroupModel *info =
                      [[HXGetJoinGroupModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

/**
 获取群组中的成员 1.群id  2.成员id (不传则全部)
 */
+(void)getGroupsMembersWithGroupId:(NSString *)groupId
                     withMembersId:(NSString *)membersID
                           Success:(void (^)(HXGetGroupMembersModel *result))success
                           failure:(void (^)(NSError* err))failure{

    NSDictionary * params = @{@"GroupID":groupId,
                              @"UserID":membersID};
    

    [PPNetworkHelper POST:PATH(@"%@/Users/GetGroupUsers.ashx")
               parameters:params
                  success:^(id responseObject) {
                      HXGetGroupMembersModel *info =
                      [[HXGetGroupMembersModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

/**
 获取某个成员的日报历史
 */
+(void)getDayWorkListWithGroupId:(NSString *)groupId
                   withMembersId:(NSString *)membersID
                    withPageSize:(NSString *)pageSize
                     withPageNum:(NSString *)pageNum
                         Success:(void (^)(HXGetMembersDayWorkModel *result))success
                         failure:(void (^)(NSError* err))failure{

    NSDictionary * params = @{@"GroupID":groupId,
                           @"UserID":membersID,
                           @"PageSize":pageSize,
                           @"PageNum":pageNum};

    [PPNetworkHelper POST:PATH(@"%@/DayWork/GetDayWorkList.ashx")
               parameters:params
                  success:^(id responseObject) {
                      HXGetMembersDayWorkModel *info =
                      [[HXGetMembersDayWorkModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

/**
 编写并添加日报
 */
+(void)addDayWorkWithC_SendAdd:(NSString *)C_SendAdd
             withC_SendGroupID:(NSString *)C_SendGroupID
                 withC_Content:(NSString *)C_Content
              withPicListArray:(NSArray *)picList
                       Success:(void (^)(HXBaseModel *result))success
                       failure:(void (^)(NSError* err))failure{

    NSDictionary * params = @{@"C_SendID":[UserDefaultHandler getUserDetault:kID],
                              @"C_SendName":[UserDefaultHandler getUserDetault:kUsers_PersonName],
                              @"C_SendAdd":C_SendAdd,
                              @"C_SendGroupID":C_SendGroupID,
                              @"C_Content":C_Content,
                              @"C_IsSend":@"true",
                              @"picList":picList};

    [PPNetworkHelper POST:PATH(@"%@/DayWork/AddDayWork.ashx")
               parameters:params
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

/**
 修改日报
 */
+(void)changeDayWorkWithDayWorkID:(NSString *)ID
                    WithC_Content:(NSString *)C_Content
                 withPicListArray:(NSArray *)picList
                          Success:(void(^)(HXBaseModel * result))success
                          failure:(void(^)(NSError * err))failure {
    
    NSDictionary * parameters = @{
                                  @"ID":ID,
                                  @"C_Content":C_Content,
                                  @"picList":picList
                                  };


    [PPNetworkHelper POST:PATH(@"%@/DayWork/UpdateDayWork.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

/**
 评论 或者 日报详情
 */
+(void)getReadDayWorkDetailesOrCommentWithMessageID:(NSString *)messageId
                                            Success:(void (^)(HXReadDayWorkOrCommentModel *result))success
                                            failure:(void (^)(NSError* err))failure{

    NSDictionary * params = @{@"MessageID":messageId,
                              @"ReadUserID":[UserDefaultHandler getUserDetault:kID]};

    [PPNetworkHelper POST:PATH(@"%@/DayWork/ReadDayWork.ashx")
               parameters:params
                  success:^(id responseObject) {
                      HXReadDayWorkOrCommentModel *info =
                      [[HXReadDayWorkOrCommentModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}


/**
 发表评论
 */
+(void)AddRepDayWorkWithMessageID:(NSString *)MessageID
                      withContent:(NSString *)Content
                          Success:(void(^)(HXBaseModel * result))success
                          failure:(void(^)(NSError * err))failure{

    NSDictionary * params = @{@"MessageID":MessageID,
                              @"RepUserID":[UserDefaultHandler getUserDetault:kID],
                              @"Content":Content,};
    

    [PPNetworkHelper POST:PATH(@"%@/DayWork/AddRepDayWork.ashx")
               parameters:params
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

/**
 点看过
 */
+(void)getLookTimesWithMessageID:(NSString *)MessageID
                         Success:(void(^)(HXGetLookTimesModel * result))success
                         failure:(void(^)(NSError * err))failure {
    
    NSDictionary * parameters = @{
                                  @"MessageID":MessageID
                                  };
    

    [PPNetworkHelper POST:PATH(@"%@/DayWork/GetReadUserList.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXGetLookTimesModel *info =
                      [[HXGetLookTimesModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}


/**
 企业内部通知列表
 */
+(void)getCompanyPersonalNotifyListWithOrgCode:(NSString *)OrgCode
                                      PageSize:(NSString *)PageSize
                                       PageNum:(NSString *)PageNum
                                       Success:(void(^)(HXGetCompanyPersonalNotifyListModel * result))success
                                       failure:(void(^)(NSError * err))failure {
    
    NSDictionary * parameters = @{
                                  @"OrgCode":OrgCode,
                                  @"PageSize":PageSize,
                                  @"PageNum":PageNum
                                  };
    

    [PPNetworkHelper POST:PATH(@"%@/CorpMessage/GetMessageList.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXGetCompanyPersonalNotifyListModel *info =
                      [[HXGetCompanyPersonalNotifyListModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

/**
 企业内部通知详情
 */
+(void)getCompanyPersonalNotifyDetailWithMessageID:(NSString *)MessageID
                                           Success:(void(^)(HXGetPersonalNotifyDetailModel * result))success
                                           failure:(void(^)(NSError * err))failure {
    
    
    NSDictionary * parameters = @{
                                  @"MessageID":MessageID
                                  };

    [PPNetworkHelper POST:PATH(@"%@/CorpMessage/GetMessageDetail.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXGetPersonalNotifyDetailModel *info =
                      [[HXGetPersonalNotifyDetailModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}


/**
 提交企业内部通知
 */
+(void)sendCompanyPersonalNotifyWithC_SendID:(NSString *)C_SendID
                                  C_SendName:(NSString *)C_SendName
                                   C_OrgCode:(NSString *)C_OrgCode
                                     C_Title:(NSString *)C_Title
                                   C_Content:(NSString *)C_Content
                                    C_IsSend:(NSString *)C_IsSend
                                     picList:(NSArray *)picList Success:(void(^)(HXBaseModel * result))success
                                     failure:(void(^)(NSError * err))failure {
    
    NSDictionary * parameters = @{
                                  @"C_SendID":C_SendID,
                                  @"C_SendName":C_SendName,
                                  @"C_OrgCode":C_OrgCode,
                                  @"C_Title":C_Title,
                                  @"C_Content":C_Content,
                                  @"C_IsSend":C_IsSend,
                                  @"picList":picList,
                                  };
    

    [PPNetworkHelper POST:PATH(@"%@/CorpMessage/AddMessage.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

/**
 项目班子成员
 */
+(void)getProjectMemberWithCorpType:(NSString *)CorpType
                             PrjNum:(NSString *)PrjNum
                            KeyGuid:(NSString *)KeyGuid
                           CorpCode:(NSString *)CorpCode
                            Success:(void(^)(HXGetProjectMemberModel * result))success
                            failure:(void(^)(NSError * err))failure {
    
    NSDictionary * parameters = @{
                                  @"CorpType":CorpType,
                                  @"PrjNum":PrjNum,
                                  @"KeyGuid":KeyGuid,
                                  @"CorpCode":CorpCode
                                  };
    
    [PPNetworkHelper POST:PATH(@"%@/TeamMembers/GetTeam.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXGetProjectMemberModel *info =
                      [[HXGetProjectMemberModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

/**
 查询分包单位变更记录
 */
+(void)getChickUpHistroyWithKeyGuid:(NSString *)KeyGuid
                            Success:(void (^)(HXGetChickUpHistoryModel *result))success
                            failure:(void (^)(NSError* err))failure {
    
    NSDictionary * parameters = @{
                                  @"KeyGuid":KeyGuid
                                  };
    

    [PPNetworkHelper POST:PATH(@"%@/work/GetContractInfoChangeRecordhistoryByContractGuid.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXGetChickUpHistoryModel *info =
                      [[HXGetChickUpHistoryModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

/**
 工地报告取证
 */
+(void)sendReportEvidenceWithCon_TaskID:(NSString *)Con_TaskID
                            Con_UserID:(NSString *)Con_UserID
                               Con_Add:(NSString *)Con_Add
                           Con_Content:(NSString *)Con_Content
                              Con_Date:(NSString *)Con_Date
                            Con_PicUrl:(NSString *)Con_PicUrl
                            Con_PicType:(NSString *)Con_PicType
                               Success:(void(^)(HXBaseModel * result))success
                               failure:(void(^)(NSError * err))failure {
    
    
    NSDictionary * parameters = @{
                                  @"Con_TaskID":Con_TaskID,
                                  @"Con_UserID":Con_UserID,
                                  @"Con_Add":Con_Add,
                                  @"Con_Content":Con_Content,
                                  @"Con_Date":Con_Date,
                                  @"Con_PicUrl":Con_PicUrl,
                                  @"Con_PicType":Con_PicType,
                                  @"Con_IsSend":@"true"
                                  };
    
    
    [PPNetworkHelper POST:PATH(@"%@/work/SendPicInfo.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

/**
 企业报告取证
 */









/**
 企业通讯录
 */
+(void)getPhoneBookWithQuery:(NSString *)query
                     Success:(void (^)(HXGetGroupMembersModel *result))success
                     failure:(void (^)(NSError* err))failure{

    NSDictionary * parameters = @{
                                  @"OrgCode":[UserDefaultHandler getUserDetault:kUsers_Organization],
                                  @"Query":query,
                                  };
    
    [PPNetworkHelper POST:PATH(@"%@/DayWork/PhoneBook.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXGetGroupMembersModel *info =
                      [[HXGetGroupMembersModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

/**企业检查任务列表*/
+(void)getGetCorpTaskListWithPageNum:(NSInteger)pageNum
                             Success:(void(^)(HXGetCorpTaskListModel * result))success
                             failure:(void(^)(NSError * err))failure{

    NSDictionary * parameters = @{
                                  @"UserID":[UserDefaultHandler getUserDetault:kID],
                                  @"PageSize":@"10",
                                  @"PageNum":@(pageNum),
                                  };
 

    [PPNetworkHelper POST:PATH(@"%@/work/GetCorpTaskList.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXGetCorpTaskListModel *info =
                      [[HXGetCorpTaskListModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

/**获取企业类型*/
+(void)getGetAreaOrKindSuccess:(void(^)(HXGetAreaOrKindModel * result))success
                       failure:(void(^)(NSError * err))failure{

    NSDictionary * parameters = @{
                                  @"type":@"kind",
                                 };
    


    [PPNetworkHelper POST:PATH(@"%@/Message/GetAreaOrKind.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXGetAreaOrKindModel *info =
                      [[HXGetAreaOrKindModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

/**获取企业*/
+(void)getGetCorpListWithQuery:(NSString *)query
                  withCorpKind:(NSString *)corpKind
                   withPageNum:(NSInteger)pageNum
                       Success:(void(^)(HXGetCorpListModel * result))success
                       failure:(void(^)(NSError * err))failure{

    
    NSDictionary * parameters = @{
                                  @"Query":query,
                                  @"CorpKind":corpKind,
                                  @"PageSize":@"10",
                                  @"PageNum":@(pageNum),
                                  };
    
    [PPNetworkHelper POST:PATH(@"%@/work/GetCorpList.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXGetCorpListModel *info =
                      [[HXGetCorpListModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

/**任务添加*/
+(void)getAddCorpTaskWithSiteName:(NSString *)SiteName
                      withSiteAdd:(NSString *)SiteAdd
              withSiteWorkContent:(NSString *)SiteWorkContent
                       withpointX:(CGFloat)pointX
                       withpointY:(CGFloat)pointY
                      withKeyGuid:(NSString *)KeyGuid
                    withGroupName:(NSString *)GroupName
                   withCreateDate:(NSString *)CreateDate
                   withUpdateDate:(NSString *)UpdateDate
                          Success:(void(^)(HXCreatePunishModel * result))success
                          failure:(void(^)(NSError * err))failure{

    NSDictionary * parameters = @{
                                  @"SiteName":SiteName,
                                  @"SiteAdd":SiteAdd,
                                  @"SiteWorkContent":SiteWorkContent,
                                  @"pointX":@(pointX),
                                  @"pointY":@(pointY),
                                  @"KeyGuid":KeyGuid,
                                  @"GroupName":GroupName,
                                  @"CreateDate":CreateDate,
                                  @"UpdateDate":UpdateDate,
                                  @"UserID":[UserDefaultHandler getUserDetault:kID],
                                  };
    

    [PPNetworkHelper POST:PATH(@"%@/work/AddCorpTask.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXCreatePunishModel *info =
                      [[HXCreatePunishModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}


/**反馈意见*/
/**
 获取意见反馈列表 1.KindType:1为第一层 2为第二层  2.1不需要 2需要
 */
+(void)getFeedBackGetKindDataWithKindType:(NSInteger)KindType
                               withDataID:(NSString *)DataID
                                  Success:(void(^)(HXFeedBackGetKindDataModel * result))success
                                  failure:(void(^)(NSError * err))failure{

    NSDictionary * parameters;
    
    if (DataID.length <= 0) {
        parameters = @{@"KindType":@(KindType)};
    }else if(DataID.length > 0){
    
        parameters = @{@"KindType":@(KindType),
                       @"DataID":DataID};
    }

    [PPNetworkHelper POST:PATH(@"%@/FeedBack/GetKindData.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXFeedBackGetKindDataModel *info =
                      [[HXFeedBackGetKindDataModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}

/**提交意见反馈*/
+(void)sendFeedBackAddFeedBackWithQueText:(NSString *)QueText
                            withSceneText:(NSString *)SceneText
                         withFeedbackText:(NSString *)FeedbackText
                              withPicList:(NSArray *)picList
                                  Success:(void(^)(HXBaseModel * result))success
                                  failure:(void(^)(NSError * err))failure{

    NSDictionary * parameters = @{@"QueText":QueText,
                                  @"SceneText":SceneText,
                                  @"FeedbackText":FeedbackText,
                                  @"picList":picList,
                                  @"UserName":[UserDefaultHandler getUserDetault:kUsers_PersonName],
                                  @"UserTel":[UserDefaultHandler getUserDetault:kUsers_CellPhoneNum],};

    [PPNetworkHelper POST:PATH(@"%@/FeedBack/AddFeedBack.ashx")
               parameters:parameters
                  success:^(id responseObject) {
                      HXBaseModel *info =
                      [[HXBaseModel alloc] initWithDictionary:(NSDictionary *)responseObject error:nil];
                      success(info);
                  } failure:^(NSError *error) {
                      failure(error);
                  }];
}



@end










